<template>
  <div style="height:520px">
    <div class="demo-image" v-if="imgUrl.length>0">
      <el-image  v-for="(item,index) in imgUrl" :key="index"   :src="item" >
    </el-image>
  </div>
  <div class="demo-image-none" v-else >暂无图片</div>
</div>
</template>

<script>
export default {
  props: {
    value: {
      type: Number,
      required: true
    },
    infoBasic: {
      type: String,
      required: true
    }
  },
  data() {
    return {
      imgUrl: [
        'https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg',
        'https://fuss10.elemecdn.com/1/8e/aeffeb4de74e2fde4bd74fc7b4486jpeg.jpeg'
        ]
    };
  },
  created() {
    this.init();
  },
  methods: {
    //初始化数据
    init() {
      console.log('行id---->', this.value);
      console.log('是否编辑---->', this.infoBasic);
      //赋值
      // this.initForm.forEach(x => {
      //     x.initialValue = data.row[x.fieldName];
      // });
    }
  }
}
</script>